package llama.ctrl;

import llama.core.ChatModelLocator;
import llama.core.LoginCredentials;
import llama.network.NetworkMessage;
import llama.network.NetworkMessage.Type;

public class LoginClientCtrl implements IController {
	private LoginCredentials loginCredentials;
	
	@Override
	public void execute() {
		System.out.println("LoginClientCtrl"); //TODO replace with logger or remove?
		ChatModelLocator.getChatModel().connect(new NetworkMessage(loginCredentials, Type.LOGIN));
	}

	public void setLoginCredentials(String email, String password) {
		this.loginCredentials = new LoginCredentials(email, password);
	}

}
